import { acceptHMRUpdate, defineStore } from "pinia";

export const useUtilsStore = defineStore("utils", {
  state: () => {
    return {
      dialogTableVisible: false, //登录模态框
      skeletonLoading: true, //骨架屏渲染
    };
  },

  actions: {
    setDialogTableVisible(data: any) {
      this.dialogTableVisible = data;
    },
  },
});

if (import.meta.hot)
  import.meta.hot.accept(acceptHMRUpdate(useUtilsStore, import.meta.hot));
